package com.fastbee.iot.domain;

import com.fastbee.common.annotation.Excel;
import com.fastbee.common.core.domain.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import java.math.BigDecimal;

/**
 * 设备对象 whhx_device_parameter
 *
 * @author kerwincui
 * @date 2021-12-16
 */
@ApiModel(value = "DeviceParameter", description = "设备参数设置 whhx_device_parameter")
public class WhhxDeviceParameter extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 参数id */
    @ApiModelProperty("参数id")
    private Integer id;

    /** 父类(监测)id */
    @ApiModelProperty("父类(监测)id")
    @Excel(name = "父类(监测)id")
    private String monitorId;

    /** 设备编码 */
    @ApiModelProperty("设备编码")
    @Excel(name = "设备编码")
    private String deviceCode;

    /** 参数名称 */
    @ApiModelProperty("参数名称")
    @Excel(name = "参数名称")
    private String name;

    /** 参数编码 */
    @ApiModelProperty("参数编码")
    @Excel(name = "参数编码")
    private String code;

    /** 参数最大值 */
    @ApiModelProperty("参数最大值")
    @Excel(name = "参数最大值")
    private String parameterMax;

    /** 参数最小值 */
    @ApiModelProperty("参数最小值")
    @Excel(name = "参数最小值")
    private String parameterMin;

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getMonitorId() {
        return monitorId;
    }

    public void setMonitorId(String monitorId) {
        this.monitorId = monitorId;
    }

    public String getDeviceCode() {
        return deviceCode;
    }

    public void setDeviceCode(String deviceCode) {
        this.deviceCode = deviceCode;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getParameterMax() {
        return parameterMax;
    }

    public void setParameterMax(String parameterMax) {
        this.parameterMax = parameterMax;
    }

    public String getParameterMin() {
        return parameterMin;
    }

    public void setParameterMin(String parameterMin) {
        this.parameterMin = parameterMin;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("Id", getId())
            .append("monitorId", getMonitorId())
            .append("deviceCode", getDeviceCode())
            .append("name", getName())
            .append("code", getCode())
            .append("parameterMax", getParameterMax())
            .append("parameterMin", getParameterMin())
            .toString();
    }
}
